from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('pydemo.polls.views',

    (r'^$','index'),
    (r'^(?P<poll_id>\d+)/$','detail'),
    (r'^(?P<poll_id>\d+)/results/$','results'),
    (r'^(?P<poll_id>\d+)/vote/$','vote'),   
    (r'^admin/(.*)', admin.site.root),
    
)
